import React, { Component } from 'react'
import { Consumer } from '../utils/context'

export default class Son extends Component {
    render() {
        return (
            <div>
                <h3>
                    我是子组件
                    <Consumer>
                        {
                            (data) => {
                                return data
                            }
                        }
                    </Consumer>
                </h3>
            </div>
        )
    }
}
